1name: Regenerate Docs
2on: [workflow_dispatch]
3
4jobs:
5 RegenerateDocs:
6 runs-on: ubuntu-latest
7 steps:
8 - name: Checkout
9 uses: actions/checkout@v3
10
11 - name: Clone Wiki
12 uses: actions/checkout@v3
13 with:
14 repository: BelfrySCAD/BOSL2.wiki
15 path: BOSL2.wiki
16
17 - name: Apt Update
18 run: sudo apt update
19
20 - name: Install Required Libraries
21 run: sudo apt-get install python3-pip python3-dev python3-setuptools python3-pil gifsicle libfuse2
22
23 - name: Install OpenSCAD-DocsGen package.
24 run: sudo pip3 install openscad-docsgen
25
26 - name: Install OpenSCAD
27 run: |
28 cd $GITHUB_WORKSPACE
29 wget https://github.com/openscad/openscad/releases/download/openscad-2021.01/OpenSCAD-2021.01-x86_64.AppImage
30 sudo mv OpenSCAD-2021.01*-x86_64.AppImage /usr/local/bin/openscad
31 sudo chmod +x /usr/local/bin/openscad
32
33 - name: Generate Docs
34 uses: GabrielBB/xvfb-action@v1.6
35 env:
36 OPENSCADPATH: ${{ github.workspace }}/..
37 with:
38 run: openscad-docsgen -f
39
40 - name: Upload Docs to Wiki
41 uses: SwiftDocOrg/github-wiki-publish-action@v1
42 with:
43 path: "BOSL2.wiki"
44 env:
45 GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PAT }}
46